import { Table,Space } from 'antd';
import React from 'react';

const columns = [
  {
    title: '客户名称',
    dataIndex: 'name',
    align: 'center',
    className: "bgColor",
    render: (text) => <a>{text}</a>,
  },
  {
    title: '订单编号',
    dataIndex: 'number',
    align: 'center',
    className: "bgColor",
    render: (text) => <a>{text}</a>,
  },
  {
    title: '联系人',
    dataIndex: 'contact',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '下单日期',
    dataIndex: 'orderdata',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '交单日期',
    dataIndex: 'ordereddata',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '订单总金额',
    dataIndex: 'money',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '已收款',
    dataIndex: 'receipts',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '欠款',
    dataIndex: 'debt',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '订单状态',
    dataIndex: 'orderstate',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '发货状态',
    dataIndex: 'sendstate',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '收货人',
    dataIndex: 'receiver',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '收货人电话',
    dataIndex: 'receivercall',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '收货人地址',
    dataIndex: 'adress',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '备注',
    dataIndex: 'remarks',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '业务员',
    dataIndex: 'salesman',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '录入时间',
    dataIndex: 'time',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '附件',
    dataIndex: 'otheradd',
    align: 'center',
    className: "bgColor",
  },
  {
    title: '订单商品',
    dataIndex: 'ware',
    align: 'center',
    className: "bgColor",
  },
  {
    title: "管理",
    key: "action",
    align: 'center',
    className: "bgColor",
    render: () => (
      <Space size="small">
        <button>到款</button>
        <button>打印</button>
        <button>修改</button>
        <button>删除</button>
      </Space>
    ),
  },
];
const data = [
  {
    key: '1',
    name: '王蛋',
    number: 'DD2022081315393',
    contact:'王二蛋',
    orderdata:'2022-08-13',
    ordereddata:'2022-08-13',
    money:'1800',
    receipts:'1800',
    debt:'0',
    orderstate:'已处理',
    sendstate:'已发货',
    receiver:'王二蛋',
    receivercall:'138135165',
    adress:'王家村蛋组',
    remarks:'王二蛋收',
    salesman:'超级管理员',
    time:'2022-08-13 15:39	',
    otheradd:'附件',
    ware:'订单商品',
  },
];

const Newaddday = () => (
  <Table
    columns={columns}
    dataSource={data}
    pagination={false}
    bordered
  />
  
);

export default Newaddday;